package com.lottery.ruok.lottrey.retrofitModule.request;

import com.lottery.ruok.lottrey.retrofitModule.BaseModel;
import com.lottery.ruok.lottrey.retrofitModule.response.GetOrderResponse;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by ASUS on 2017/7/26.
 */

public interface GetOrderRequest {
    @POST("order_log")
    @FormUrlEncoded
    Observable<BaseModel<GetOrderResponse>> getResult(@Field("status") String status,
                                                     @Field("unique_id") String unique_id,
                                                     @Query("token") String token,
                                                     @Field("size") String size,
                                                      @Field("index") int index,
                                                      @Field("start") String start,
                                                      @Field("end") String end,
                                                      @Field("item_code") String item_code);
}
